<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>SISCAPE | Cadastrar Evento</title>
<!-- 	<h:outputStylesheet name="bootstrap.css" library="css" /> -->
	<h:outputStylesheet name="styles.css" library="css" />
	
</h:head>
<h:body>
	<ui:include src="menu/menu.xhtml" />
	<center>
	<h:messages />
	<h:form id="conteudo"> 
		<div id="subHeader">Cadastro de Evento</div>		
		<h:panelGrid columns="2" >
				<h:outputText value="* Nome do Evento:" class="right"/>
				<h:inputText value="#{eventoBean.evento.nomeEvento}" size="20" required="true" label="Campo Nome"/>
				
				<h:outputText value="* Data:" class="right"/>
				<h:inputText value="#{eventoBean.evento.dataEvento}" required="true" label="Data do Evento">
					<f:convertDateTime pattern="dd/MM/yyyy" dateStyle="medium" locale="pt_BR" timeZone="GMT-3" />
				</h:inputText>				
				
				<h:outputText value="* Valor Cobrado: " class="right"/>
				<h:inputText value="#{eventoBean.evento.valorEvento}" size="20" required="true" label="Campo Valor Cobrado"/>
				
				<h:outputText value="* Custo: " class="right"/>
				<h:inputText value="#{eventoBean.evento.custoEvento}" size="20" required="true" label="Campo Custo"/>
								
		</h:panelGrid>
		<h:commandButton action="#{eventoBean.cadastrar()}" value="Cadastar" class="btn" />
	</h:form>
	</center>
</h:body>
</html>